package com.qf.xiaomi.dao;

import com.qf.xiaomi.pojo.Cart;

import java.util.List;

/**
 * @author 千锋教育
 * @Company http://www.mobiletrain.org/
 * @Version 1.0
 */
public interface CartDao {
    Cart findCartByUIdAndGoodsId(int uid, int goodsId);

    void insert(Cart cart);

    void update(Cart cart);

    List<Cart> getCart(int uid);

    void deleteCart(int uid, int goodsId);

    void clearCart(int uid);
}
